<template>
	<view class="main animated fadeIn faster">
		<TitleBarVue :title="title"/>
		<view class="position-relative" style="top: 333rpx;">
			<view class="text-center color333 mb-2" @click="gotoFirstChargePage">余额</view>
			<view class="d-flex d-flex-center d-flex-bottom">
				<view class="font-bold mr-1" style="font-size: 44rpx; color: #313131;">{{this.$store.state.user.giftAvailableAmount}}</view>
				<view class="font32 color333" style="margin-bottom: 3px;">嗒币收入</view>
			</view>
			<view class="text-center mt-1 mb-2" style="color: #696969;" @click="gotoFinancialDetailsPage(0)">收入明细></view>
			<view class="text-center mb-4" style="color: #696969;" @click="gotoFinancialDetailsPage(1)">提现明细></view>
			<view class="mt-2 py-2 rounded50 colorfff text-center" style="background: #56a3fd; width: 50%; margin: 0 auto;" @click="gotoWithdrawalPage">去提现</view>
			<!-- <view class="bg-fff rounded20 pb-2" style="width: 90%; margin: 0 auto;">
				<view class="px-3" style="width: 90%; margin: 0 auto;">
					<view style="border-bottom: 1px solid #bfbfbf;">
						<view class="mx-3 d-flex d-flex-between pt-2 pb-1">
							<view style="color: #4b4b4b;">未结算余额</view>
							<view  style="color: #696969;" @click="gotoFinancialDetailsPage(0)">结算明细></view>
						</view>
						<view class="mb-1 mx-3 d-flex d-flex-bottom">
							<view class="ml-1 mr-2 font-bold color333" style="font-size: 46rpx">0</view>
							<view class="color333" style="margin-bottom: 3px;">嗒币收入</view>
						</view>
					</view>
				</view>
				<view class="px-3" style="width: 90%; margin: 0 auto;">
					<view class="mx-3 d-flex d-flex-between pt-2 pb-1">
						<view style="color: #4b4b4b;">可用余额</view>
						<view  style="color: #696969;" @click="gotoFinancialDetailsPage(1)">提现明细></view>
					</view>
					<view class="mb-1 mx-3 d-flex d-flex-between d-flex-middle">
						<view class="d-flex d-flex-bottom" style="margin-top: 4px;">
							<view class="ml-1 mr-2 font-bold color333" style="font-size: 46rpx">0</view>
							<view class="color333" style="margin-bottom: 3px;">嗒币收入</view>
						</view>
						<view class="mt-1 px-3 py-1 rounded30 colorfff" style="background: #56a3fd;" @click="gotoWithdrawalPage">去提现</view>
					</view>
				</view>
			</view> -->
		</view>
	</view>
</template>

<script>
	import TitleBarVue from '../../components/TitleBar.vue';
	import store from '@/store/index.js';
	import { userApi } from '../../http/userApi';
	export default {
		data() {
			return {
				title: '嗒币收入'
			}
		},
		components: {TitleBarVue},
		methods: {
			gotoRechargePage() {
				uni.navigateTo({
					url: '/pagesMain/Recharge/Recharge'
				})
			},
			gotoWithdrawalPage() {
				uni.navigateTo({
					url: '/pagesApp/Withdrawal/Withdrawal'
				})
			},
			gotoFinancialDetailsPage(type) {
				uni.navigateTo({
					url: '/pagesApp/FinancialDetails/FinancialDetails?type='+type
				})
			},
			gotoFirstChargePage() {
				uni.navigateTo({
					url: '/pagesApp/FirstCharge/FirstCharge'
				})
			}
		},
		mounted() {
			
		}
	}
</script>

<style scoped lang="scss">
.main {
	background: #f8f8f8;
	overflow: hidden;
	.content {
		width: 100%;
		background-color: #fff !important;
	}
}
.pt-300 {
	padding-top: 300rpx;
}
.mt-200 {
	margin-top: 200rpx;
}
</style>
